package com.cola.springmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

/**
 * @Grup:com.cola.springmvc.controller
 * @Auther:cola
 * @Data:2021/4/24-2021-04-0:08
 * @version:1.0
 */
@Controller
public class IndexController {

    @RequestMapping("/index")
    public String home(HttpSession session){
        System.out.println(session.getId());
        System.out.println("dada");
        return "home";
    }
}
